<template>
	<view class="padding-30">
		<view class="padding-30 border-radius20 bg-fff">
			<view class="flex-between margin-bottom30 padding-bottom30 f-divider1" @click="gotoUrl('用户协议')">
				<view class="fontSize-15 color-000">用户协议</view>
				<u-icon name="arrow-right" color="#666666" size="20"></u-icon>
			</view>
			<view class="flex-between" @click="gotoUrl('用户协议')">
				<view class="fontSize-15 color-000">隐私协议</view>
				<u-icon name="arrow-right" color="#666666" size="20"></u-icon>
			</view>
		</view>
		
		
		<!-- 底部操作栏 -->
		<view style="height: 200rpx;"></view>
		<view class="position-fixed-bottom padding-30 bg-fff">
			<view class="btn50-0165FD-15ffffff flex-center" @click="goOutLogin">
				退出登录
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data(){
			return{
				
			}
		},
		methods:{
			// 跳转到协议页面
			gotoUrl(value){
				this.$tools.navigateTo('/pages/login/agreement?status='+value)
			},
			// 退出登录
			goOutLogin(){
				uni.clearStorageSync()
				this.$tools.toast('退出成功')
				this.$tools.switchTab('/pages/index/index')
			}
		}
	}
</script>

<style lang="scss" scoped>
	
</style>